<!--
 * @Author: 'hxian' '2232436248@qq.com'
 * @Date: 2025-01-09 10:41:18
 * @LastEditors: 'hxian' '2232436248@qq.com'
 * @LastEditTime: 2025-01-09 10:44:31
 * @FilePath: \vue-project\src\App.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<script setup>
import { RouterLink, RouterView } from 'vue-router'
</script>

<template>
  <header>
    <img alt="Vue logo" class="logo" src="@/assets/logo.svg" width="60" height="60" />
    <div class="wrapper">
      <nav>
        <RouterLink to="/">Home</RouterLink>
        <RouterLink to="/about">About</RouterLink>
        <RouterLink to="/map">map</RouterLink>
      </nav>
    </div>
  </header>

  <RouterView />
</template>

<style scoped>
header {
  line-height: 1.5;
  max-height: 100vh;
  display: flex;
}

.logo {
  display: block;
  margin: 0 auto 2rem;
}


.logo {
  margin: 0 2rem 0 0;
}

header .wrapper {
  display: flex;
  place-items: flex-start;
  flex-wrap: nowrap;
}
.router-link-active{
  color: #f2f2f2;
}

nav {
  font-size: 1rem;
  padding: 1rem 0;
  width: 100%;
  text-align: center;
  margin-top: 2rem;
}
nav a {
  margin-right: 12px;
}
</style>
